import request from '@/utils/request'

// 查询退出申请列表
export function listDealExit(query) {
  return request({
    url: '/exit/kaiHuiDealExit/list',
    method: 'get',
    params: query
  })
}

// 行业退出计划报表
export function industryExitReport(query) {
  return request({
    url: '/exitReport/industryExitReport',
    method: 'get',
    params: query
  })
}

// 退出方式报表
export function exitWayReport(query) {
  return request({
    url: '/exitReport/exitWayReport',
    method: 'get',
    params: query
  })
}

// 查询退出申请详细
export function getDealExit(id) {
  return request({
    url: '/exit/kaiHuiDealExit/' + id,
    method: 'get'
  })
}

// 保存退出申请
export function saveDealExit(data) {
  return request({
    url: '/exit/kaiHuiDealExit/save',
    method: 'post',
    data: data
  })
}

// 删除退出申请
export function delDealExit(id) {
  return request({
    url: '/exit/kaiHuiDealExit/' + id,
    method: 'delete'
  })
}

// 导出退出申请
export function exportDealExit(query) {
  return request({
    url: '/exit/kaiHuiDealExit/export',
    method: 'get',
    params: query
  })
}

// 获取退出申请基本信息
export function getExitBaseInfo(query) {
  return request({
    url: '/exit/kaiHuiDealExit/getExitBaseInfo',
    method: 'get',
    params: { 'dealId': query }
  })
}

// 获取流程审批通过的退出申请
export function findProcessEndByDealId(dealId) {
  return request({
    url: '/exit/kaiHuiDealExit/findProcessEndByDealId/' + dealId,
    method: 'get'
  })
}

